package org.yaglyf.rest.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;
import org.yaglyf.api.service.UserInfoService;

import java.io.IOException;

/**
 * Created by yaq on 2016/8/31.
 */
@RestController
@RequestMapping("test")
public class TestController {

    @Reference
    private UserInfoService userInfoService;
//    @Autowired
//    private ITest test;

    @RequestMapping("aaa")
    public ModelAndView test(){
        //userInfoService.testINFO();
        return new ModelAndView("Test");
    }
    @RequestMapping("bbb")
    public String test1() throws IOException {
//        String s = test.test11();
        userInfoService.testINFO();
        userInfoService.testINFO();
        userInfoService.testINFO();
//        userInfoService.testINFO();
//        userInfoService.testINFO();
//        String s = test.aaaa("wwww");
        return "test";
    }

}
